# Contributor: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
# Maintainer: Saijin-Naib <Saijin-Naib_package-maintenance@outlook.com>
pkgname=xfce4-smartbookmark-plugin
pkgver=0.5.2
pkgrel=0
pkgdesc="Query search engines from the panel"
url="https://docs.xfce.org/panel-plugins/xfce4-smartbookmark-plugin/start"
arch="all"
license="GPL-2.0-or-later"
makedepends="
	gtk+3.0-dev
	libxfce4ui-dev
	xfce4-dev-tools
	xfce4-panel-dev
	"
subpackages="$pkgname-lang"
source="$pkgname-$pkgver.tar.gz::https://gitlab.xfce.org/panel-plugins/xfce4-smartbookmark-plugin/-/archive/0.5.2/xfce4-smartbookmark-plugin-0.5.2.tar.gz"
builddir="$srcdir/$pkgname-$pkgver/"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
48203972cfc789b27d8363aa63f74f5b85f4c2bfe188458d208e968fdbdacb1a00c0ced28700b30807930b90fdc3980f75a74bccf50ac0f72bea08a172bafd38  xfce4-smartbookmark-plugin-0.5.2.tar.gz
"
